package week5;

import java.util.Scanner;

public class q3 {
    public static void main(String[] args) {
        Scanner math = new Scanner(System.in);
        System.out.println("输入一个整数");
        int num=math.nextInt();
        int onum=num;
        int returnnum=0;
        while (num>0){
            int digit=num%10;
            returnnum=returnnum*10+digit;
            num=num/10;
        }
        if(onum==returnnum) {
            System.out.println(onum + "是回文数");
        }else {
            System.out.println(onum+"不是回文数");
        }
    }
}
